
-- local CREATE_TEMPLATE_MARKER_DURATION = 5; -- seconds

local markerentity = {
    initial_properties = {
		visual = "upright_sprite",
		textures = {"areahelper_boundmark.png"},
		visual_size = {x = 10, y = 10},
		physical = false,
		static_save = false,
	},
	--[[	
    on_activate = function(self, staticdata, dtime_s)
		-- AQUI NO TIENE MUCHO SENTIDO GENERAR EL DELAY DE APAGADO PORQUE LO QUEREMOS PARAMETRIZADO
	end,
	]]--
	queue_delete = function(self, duracion) -- funcion personalizada
		minetest.after(duracion, function()
			self.object:remove()
		end)
	end,
};


minetest.register_entity("areahelper:markerentity", markerentity);